package cn.melon.view.control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

/**
 * @ClassName: MinWindowEventListener
 * @author Hzy
 * 最小化窗口事件
 */
public class MinWindowEventListener implements ActionListener{
	private JFrame window;
	public MinWindowEventListener(JFrame window){
		this.window = window;
	}
	
	@Override
	public void actionPerformed(ActionEvent e){
		window.setExtendedState(JFrame.ICONIFIED);;
	}
}
